/*###################################################################*
#
# MPGL Engine - CrossPlatform OpenGL Engine
# Copyright (C) 2014  Mitchell Pell
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
####################################################################*/

#ifndef GL_APP_COMPONENTS_H_
#define GL_APP_COMPONENTS_H_

/*! Include Console Handler */
#include "../../GLDriver/GLDriverComponents/Console/GLConsole.h"

/*! 
*  Include NetworkManager
* @note Include Networking before anything that needs windows.h
*/
#include "Networking/NetworkManager.h" //

/*! Include GLWindow */
#include "GLWindow/GLWindow.h"

/*! Include HLInputManager */
#include "GLInput/GLInputManager.h"

/*! Include AudioManager */
#include "Audio/AudioManager.h"

using namespace mpgl_engine::application::audio;
using namespace mpgl_engine::application::net;
using namespace mpgl_engine::application::input;
using namespace mpgl_engine::application::glfw;


namespace mpgl_engine{ namespace application{

		/*!----------------------------------------------------------------
		*	@class		GLAppComponents
		*	@brief		Encapsulated components for easy passing.
		*
		*	@author		Mitchell Pell
		*	@date		9/27/2013
		*	@version	1.0
		*
		-----------------------------------------------------------------*/
		struct GLAppComponents
		{

			/*! OpenGL Window Wrapper */
			GLWindow*			m_glWindow;
			/*! OpenGL Input Wrapper */
			GLInputManager*		m_glInput;
			/*! Audio Wrapper */
			AudioManager*		m_audio;
			/*! Network Wrapper */
			NetworkManager*		m_network;

			GlConsole*			m_console;

			/*! GLAppComponents Constructor */
			GLAppComponents(GlConsole* console = NULL);
			/*! GLAppComponents Destructor */
			~GLAppComponents();

			void SetGlConsole(GlConsole* console = NULL)
				{ m_console = console; 
					m_network->SetConsole(console);
				}
			const GlConsole* GlGetConsole() const {return m_console;}
		};
	}
}
#endif